package com.ruoyix.weblog.domain.bo;

import com.ruoyix.common.core.validate.AddGroup;
import com.ruoyix.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;

import com.ruoyix.common.core.domain.BaseEntity;

/**
 * 资源信息业务对象 blog_resource
 *
 * @author ruoyi
 * @date 2024-05-27
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class BlogResourceBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 资源类型
     */
    @NotBlank(message = "资源类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 资源路径
     */
    @NotBlank(message = "资源路径不能为空", groups = { AddGroup.class, EditGroup.class })
    private String path;

    /**
     * 资源内容的大小，单位：字节
     */
    @NotNull(message = "资源内容的大小，单位：字节不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long size;

    /**
     * 资源的 MIME 类型
     */
    @NotBlank(message = "资源的 MIME 类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String mimeType;

    /**
     * 是否启用[0:否，1:是]
     */
    @NotNull(message = "是否启用[0:否，1:是]不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 存储平台
     */
    @NotBlank(message = "存储平台不能为空", groups = { AddGroup.class, EditGroup.class })
    private String storeType;



}
